package com.openatc.agent.service;

import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.openatc.agent.model.Route;
import com.openatc.comm.data.MessageData;
import com.openatc.model.model.Feature;

import java.util.List;
import java.util.Map;

/**
 * @Classname RouteService
 * @Description
 * @Date 2022/11/21 17:56
 * @Created by panleilei
 */
public interface RouteService {
    List<String> getAgentIds(JsonArray devJsonArray);

    Map<String, Feature> getCrossFeature(List<MessageData> messageDatas);

    List<MessageData> buildFeatureStructure(Map<String, Feature> featureMap, JsonArray optPatternList);

    Route updatePatternList(Route routeEntity, Route dbRoute);

    JsonElement getNeedRemovePattern(int patternid, JsonArray optPatternList);
}
